#ifndef _CCSKIN_H_
#define _CCSKIN_H_

#include "CCSpineObject.h"
#include "CCSpineGlobal.h"
#include "CCAttachment.h"



class CCSlot;

/**
 * skin for a skeleton
 */
class CCSkin : public CCSpineObject {
private:    
    /// slot map
    typedef map<const char*,  Array* ,  CCSpineGlobal::CCStrPredicate> SlotMap;
    SlotMap m_slotMap;
    
protected:
    CCSkin();
    
public:
    virtual ~CCSkin();
    static CCSkin* create();
    
    /// add slot    
    void addSlot(const char* slotName,CCAttachment* attachment);
    
    CCAttachment* getAttachment(const char* slotName,const char* attachmentName);
};



#endif // __CCSkin_h__
